using Admin2025.Application.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Admin2025.Application;

/// <summary>
/// 应用层服务注册扩展方法。
/// </summary>
public static class ServiceCollectionExtensions
{
    /// <summary>
    /// 注册应用层相关服务。
    /// </summary>
    /// <param name="services">服务集合。</param>
    /// <returns>服务集合本身，支持链式调用。</returns>
    public static IServiceCollection AddApplication(this IServiceCollection services)
    {
        services.AddScoped<AuthService>();
        return services;
    }
}